function routes(state = [], action) {
    let NewState = JSON.parse(JSON.stringify(state))
    switch(action.type) {
        case "SET_ROUTES":
            NewState = action.list
            return NewState
        default:
            return state
    }
}

export default routes